var addBankPanel = null,layer = null;
	//分页功能
	layui.use(['laypage','layer'], function(){
		layer = layui.layer;

		$(".bank-close").on('click',function(){
			var _id = $(this).attr("data-id");
			layer.confirm('您是要解除银行卡吗？', {
				title: '提示',
			  	btn: ['确定','取消'] //按钮
				}, function(){
					//todo ajax params:{id:_id}
				 layer.msg('解绑成功！',
					{
						icon: 1,
				 		skin:'bank-layer-skin',
						 area: ['300px', '70px'],
				 	});
			})
		})

		//bankAdd 绑定银行卡信息
		$(".bank-add").on('click',function(){
			addBankPanel = layer.open({
				title: false,
				skin: 'bank-layer-skin',
				type: 2,
				closeBtn: 0,
				area: ['750px','760px'],
				scrollbar: false,
				content: 'http://localhost:63342/html_yangquan/personal/bind_bank.html?_ijt=loo15dlpdcdjkm65j4mlsqccjc'
			})
		})

	});
var eventBankPanelClose = function(){
	layer.close(addBankPanel);
}

$(document).ready(function(){
 	 /*银行卡hover效果*/
    $(".bank_card_type").on('mouseover',function(){
        $(this).addClass('bank-card-hover');
        $('.bank-close').on('click',function(){
            $(this).parent().addClass('bank-card-active');
        })
    })
     $(".bank_card_type").on('mouseout',function(){
        $(this).removeClass('bank-card-hover');
    })
 });